import React from "react";
import { Space } from "antd";

// 定义IconText组件
const IconText = ({
  icon,
  text,
  onClick,
}: {
  icon: React.ReactNode;
  text: string;
  onClick?: () => void;
}) => (
  <Space onClick={onClick}>
    {icon}
    {text}
  </Space>
);

export default IconText;
